package com.example.diamond.demo.controller;

import com.example.diamond.demo.bean.User;
import com.example.diamond.demo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/user")
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping("/findUser")
    public User findUser() {
        return userService.findUser();
    }
}
